// const CracoAntDesignPlugin = require('craco-antd');

// module.exports = {
//     plugins: [{
//         plugin: CracoAntDesignPlugin,
//         options: {
//             customizeTheme: {
//                 // '@primary-color': '#1DA57A',
//             },
//         },
//     }, ],
// };

const CracoLessPlugin = require('craco-less');

module.exports = {
    babel: {
        plugins: [

            [
                "import",
                {
                    "libraryName": "antd",
                    "libraryDirectory": "es",
                    "style": true //设置为true即是less
                }
            ]
        ]
    },
    plugins: [{
        plugin: CracoLessPlugin,
        options: {
            lessLoaderOptions: {
                lessOptions: {
                    // modifyVars: { '@primary-color': '#1DA57A' },
                    javascriptEnabled: true,
                },
            },
        },
    }, ],
};